package com.qhit.dao;

import com.qhit.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface RoleMappper {
    List<Role> getList(HashMap hashMap);


    List<Role> getList2();

    Long getListCount(HashMap hashMap);

    int add(Role role);

    Role getRoleById(Integer id);

    int edit(Role role);

     int delete(Integer id);

    List<Role> getRolesByUserId(int id);
}
